﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JMT.Controls.Relations
{
    public static class JLinkFactory
    {
        public static JLink Create(string type)
        {
            if (type == "aggregation")
            {
                return new JLinkAggregation();
            }
            else if (type == "composition")
            {
                return new JLinkComposition();
            }
            else if (type == "generalization")
            {
                return new JLinkGeneralization();
            }
            else if (type == "association")
            {
                return new JLinkAssociation();
            }
            return null;
        }
    }
}
